﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:NicoView"
             xmlns:ViewModel="clr-namespace:NicoView.ViewModel"
             x:Name="NicoUserSetControl" x:Class="NicoView.View.NicoViewUserAuthSetControl" 
             DataContext="{Binding NicoAuthSetViewModel,Mode=OneWay,Source={StaticResource locator}}"
             mc:Ignorable="d" Height="265" Width="384" Loaded="NicoUserSetControl_Loaded">


    

    <Grid>

        <Button x:Name="RegisterButton" Content="登録" HorizontalAlignment="Left" Margin="97,146,0,0" Width="112" Command="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=RegistCommand}" Height="29" VerticalAlignment="Top"  />
        <TextBox x:Name="MailText" HorizontalAlignment="Left" Height="21" Margin="97,94,0,0"  VerticalAlignment="Top" Width="193" Text="{Binding Mail}"  >
            <TextBox.InputBindings>
                <KeyBinding Command="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=RegistCommand}" Gesture="Enter"/>
            </TextBox.InputBindings>

        </TextBox>

        <TextBlock HorizontalAlignment="Left" Height="21" Margin="27,94,0,0" TextWrapping="Wrap" Text="Mail" VerticalAlignment="Top" Width="65" RenderTransformOrigin="0.463,2.476"/>
        <TextBlock HorizontalAlignment="Left" Height="21" Margin="27,120,0,0" TextWrapping="Wrap" Text="Password" VerticalAlignment="Top" Width="65"/>
        <TextBlock x:Name="WarnArea" HorizontalAlignment="Left" Margin="27,10,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="79" Width="263" TextAlignment="Center" Foreground="#FFDE1717"/>
        <TextBlock Margin="10,215,0,0" TextWrapping="Wrap" Text="登録するユーザ情報はブラウザと共有可能なので、サブアカウントは必要ありません" HorizontalAlignment="Left" VerticalAlignment="Top" TextAlignment="Center"/>
        <PasswordBox x:Name="PasswordText" HorizontalAlignment="Left" Margin="97,120,0,0" VerticalAlignment="Top" Width="193" Height="21"   >
            <PasswordBox.InputBindings>
                <KeyBinding Command="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=RegistCommand}" Gesture="Enter"/>
            </PasswordBox.InputBindings>
        </PasswordBox>
    </Grid>
</UserControl>
